<form class="form-horizontal" id="form-edit-user">
    
    <div class="form-group">
        <label class="control-label col-xs-2">
            价格：
            <span style="color: #FF0000;">*</span>
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$info.day_price|default=1}" class="form-control" name="day_price" placeholder="请输入价格" required autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            当日日期：
            <span style="color: #FF0000;">*</span>
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$info.day_time|default=date('Y-m-d', strtotime('+ 1 day'))}" name="day_time" class="form-control" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            周分红数量：
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$info.bonus|default=1}" placeholder="周分红数量" name="bonus" class="form-control" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            总求购数量：
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$info.qiugou|default=1}" class="form-control" name="qiugou" placeholder="总求购数量"  autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-2">
            总成交量：
        </label>
        <div class="col-xs-9">
            <input type="text" value="{$info.deal|default=1}" class="form-control" name="deal" placeholder="总成交量"  autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <div class="col-xs-offset-2 col-xs-3">
            <button type="submit" class="btn btn-success btn-block">确认</button>
        </div>
    </div>
</form>

<script src="__PUBLIC__/vendors/jquery.validation/jquery.validate.min.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/additional-methods.js"></script>
<script src="__PUBLIC__/vendors/jquery.validation/messages_zh.min.js"></script>
<script type="application/javascript">
    $(function () {
        $("#form-edit-user").validate({
            debug: true,
            submitHandler: function () {
                ajaxSubmit('form-edit-user', true);
            }
        });
    })
</script>